public class triangle extends Shape{
    private int a;
    private int b;
    private int c;

    public triangle() {
    }

    public triangle(int a, int b, int c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }

    public int getC() {
        return c;
    }

    public void setC(int c) {
        this.c = c;
    }

    @Override
    public String toString() {
        return "triangle{a = " + a + ", b = " + b + ", c = " + c + "}";
    }

    @Override
    double getArea() {
    double s= (double) (a + b + c) /2;
        return Math.sqrt(s*(s-a)*(s-b)*(s-c));
    }

    @Override
    double getCircumference() {
        return a+b+c;
    }
}
